package edu.ycu.aladdin.collector.weibo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/**
 * 微博数据请求参数
 */
@Data
@Document(collection = "weibo_user")
public class RequestParam {

    /**
     * 用户Id
     */
    @Id
    private String uid;

    /**
     * 容器id(没有该参数,请求将不会返回数据,暂时为解析出其生成方式)
     */
    @Field("containerid")
    private String containerid;


    /**
     * 日期列表
     */
    @Field("times")
    private List<String> times;

    public RequestParam() {}

    public RequestParam(String uid, String containerid) {
        this.uid = uid;
        this.containerid = containerid;
    }
}
